<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  <meta name="description" content="" />
  <meta name="author" content="" />
  <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.12/dist/css/bootstrap.min.css" rel="stylesheet" />
  <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.12/examples/dashboard/dashboard.css" rel="stylesheet" />
  <style>
    input {
      max-width: 500px;
    }
  </style>
</head>

<body>
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h1>修改学生</h1>
        <form action="/students/edit" method="POST">
          <div class="form-group">
            <input type="hidden" name="id" id="" value="{{student.id}}">
            <label for="name">姓名</label>
            <input type="text" class="form-control" id="name" placeholder="" name="name" value="{{student.name}}">
          </div>
          <div class="form-group">
            {{if student.gender == 0}}
            <label for="name">性别</label>
            <div>
              <label class="radio-inline">
								<input type="radio" id="sex" name="gender" value="0" checked>男
							</label>
              <label class="radio-inline">
								<input type="radio" id="sex" name="gender" value="1">女
							</label>
            </div>
            {{else }}
            <label for="name">性别</label>
            <div>
              <label class="radio-inline">
								<input type="radio" id="sex" name="gender" value="0">男
							</label>
              <label class="radio-inline">
								<input type="radio" id="sex" name="gender" value="1" checked>女
							</label>
            </div>
            {{/if}}
          </div>

          <div class="form-group">
            <label for="age">年龄</label>
            <input type="text" class="form-control" id="age" placeholder="" name="age" value="{{student.age}}">
          </div>
          <div class="form-group">
            <label for="college">学院</label>
            <input type="textarea" class="form-control" id="college" placeholder="" name="college" value="{{student.college}}">
          </div>
          <div class="form-group">
            <label for="college">个人描述</label>
            <input type="textarea" class="form-control" id="college" placeholder="" name="desc" value="{{student.desc}}">
          </div>
          <button type="submit" class="btn btn-default">Submit</button>
        </form>
      </div>
    </div>
  </div>
  </div>


</body>

</html>